<?php use_helper('I18N') ?>
<form action="<?php echo url_for('@sf_guard_signin') ?>" method="post">
  <ul>
<?php foreach ($form as $row): ?>
	<?php if(!$row->isHidden() && $row != $form["remember"]):?>
        <li class="form_label">
            <?php echo $row->renderLabel() ?>
        </li>
        <li class="form_help">
            <?php echo $row->renderHelp() ?>
        </li>
        <li class="form_error">
            <?php echo $row->renderError() ?>
        </li>
    
        <li class="form_row">
            <?php echo $row->render() ?>
        </li>
    <?php endif;?>
<?php endforeach; ?>
	<li>
    	<?php echo $form["remember"]->render()?> <?php echo $form["remember"]->renderLabel() ?>
    </li>
<?php echo $form->renderHiddenFields() ?>
    <li class="form_button">
        <input type="submit" value="<?php echo "Connexion" ?>" />
    </li>
    <li>
    	<?php $routes = $sf_context->getRouting()->getRoutes() ?>
          <?php if (isset($routes['sf_guard_forgot_password'])): ?>
            <a class="no_underline" href="<?php echo url_for('@sf_guard_forgot_password') ?>"><?php echo "Mot de passe oublié?" ?></a>
          <?php endif; ?>
	</li>
</ul>
</form>